package com.tangyuan.video.controller;

import com.tangyuan.common.result.Result;
import com.tangyuan.video.service.VideoDownloadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/video")
public class VideoDownloadController {
    @Autowired
    VideoDownloadService videoUploadService;
    @GetMapping("/download")
    public Result getVideoDownLoadUrlById(@RequestParam("videoId") Integer id){
           return videoUploadService.getVideoDownLoadUrlById(id);
    }

}
